import { EngStatus, ChnStatus } from '@/utils/statusMap';
Component({
  properties: {
    book: {
      type: Object
    },
  },
  data: {
    EngStatus,
    ChnStatus,
    defaultCover: ''
  },
  methods: {
    onLoad() {
      this.setData({
        defaultCover: getApp().defaultCover
      })
    },
    onTap() {
      this.triggerEvent('booktap', { book: this.data.book });
    },
    created() {
      console.log(this.data.book);
    }
  }
});